package com.bckj.fastboot.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bckj.fastboot.upms.api.dto.ClientAuthInfo;
import com.bckj.fastboot.upms.api.entity.SysOauthClientDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * SysOauthClientDetailsMapper
 *
 * @author wfc
 * @date 2025/10/16 11:53
 **/
@Mapper
public interface SysOauthClientDetailsMapper extends BaseMapper<SysOauthClientDetails> {

    @Select("""
    select * from sys_oauth_client_details where client_id=#{clientId} and delete_flag=0 limit 1
    """)
    ClientAuthInfo findByClientId(@Param("clientId") String clientId);
}
